package com.roseski.service.impl;

import javax.annotation.Resource;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

@Component
public class RedisServiceImpl {
	
	@Resource(name="myRedisTemplate")
	private RedisTemplate<String, String> redisTemplate;
	
	public String get(String key) {
        return key == null ? null : redisTemplate.opsForValue().get(key);
    }
	
	/*public void set(String key, String json) {
		redisTemplate.opsForValue().set(key, json);
	}*/

}
